home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000008_peta@cim.mcgill.ca_Thu Dec 1 08:28:38 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  3KB

  1. Received: from Lightning.McRCIM.McGill.EDU by cs.umb.edu with SMTP id AA08538
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 1 Dec 1994 13:28:54 -0500
  3. Received: from Athena.McRCIM.McGill.EDU by Lightning.McRCIM.McGill.EDU (8.6.9) with ESMTP
  4.     id <199412011826.NAA05177@Lightning.McRCIM.McGill.EDU>; Thu, 1 Dec 1994 13:26:56 -0500
  5. Received: from localhost (peta@localhost) by Athena.McRCIM.McGill.EDU (8.6.9/8.6.9) with SMTP id NAA04888 for <tex-k@cs.umb.edu>; Thu, 1 Dec 1994 13:28:39 -0500
  6. Message-Id: <199412011828.NAA04888@Athena.McRCIM.McGill.EDU>
  7. X-Authentication-Warning: Athena.McRCIM.McGill.EDU: peta owned process doing -bs
  8. X-Authentication-Warning: Athena.McRCIM.McGill.EDU: Host localhost didn't use HELO protocol
  9. To: tex-k@cs.umb.edu
  10. Subject: [dvipsk] predospecial thrashes on psfile="`zcat foo.ps"
  11. Date: Thu, 01 Dec 1994 13:28:38 -0500
  12. From: Peter Whaite <peta@cim.mcgill.ca>
  13.  
  14. My apologies if this has already been thrashed but I'm just joining the list.
  15.  
  16. Users have complained that it takes a L O N G time for dvipsk-5.58c to start
  17. producing ps output.  I tracked this down to predospecial trying to scan for
  18. font comments in the included psfiles.  In our case we make extensive use of
  19. epsfig.  We have a lot of big ps files so we compress them and generate
  20. specials like
  21.  
  22.     PSfile="`zcat FILE.eps"
  23.  
  24. Dvips ends up calling scanfontcomments("`zcat FILE.eps"), and wastes lots
  25. of time recursively searching TEXINPUTS for the non existent file. 
  26.  
  27. I've temporarily disabled the search with the following patch, but it will not
  28. scan for font comments in compressed files (no big loss in our case)...
  29.  
  30. *** dospecial.c    Thu Dec  1 12:34:48 1994
  31. --- dospecial.c.orig    Thu Dec  1 12:24:05 1994
  32. ***************
  33. *** 415,431 ****
  34.      }
  35.      usesspecial = 1 ;  /* now the special prolog will be sent */
  36.      if (scanning && *p != '"' && (p=GetKeyVal(p, &j)) != NULL && j==0)
  37. !        /* -- peta Thu Dec  1 12:31:21 1994
  38. !      This scans the psfile=ValStr for %*Font comments, presumably so
  39. !      they can be preloaded.  Unfortunately this code doesnt allow for
  40. !      the  fact that the file name could be a command to uncompress the
  41. !      files, e.g. ValStr = "`zcat filename".  As a result it takes for ever
  42. !      to recursively search TEXINPUTS looking for the non-existent ValStr.
  43. !      My temporaty solution is to disable this if the file name begins with
  44. !      "`".
  45. !        */
  46. !        if (*ValStr != '`') 
  47. !        scanfontcomments(ValStr) ;
  48.   }
  49.   
  50.   int maccess(s)
  51. --- 415,421 ----
  52.      }
  53.      usesspecial = 1 ;  /* now the special prolog will be sent */
  54.      if (scanning && *p != '"' && (p=GetKeyVal(p, &j)) != NULL && j==0)
  55. !       scanfontcomments(ValStr) ;
  56.   }
  57.   
  58.   int maccess(s)